/********************************************************************
	created:	2010/07/13
	created:	13:7:2010   14:16
	filename: 	D:\Proj\gcstock\code\C++\Base\GCTime.h
	file path:	D:\Proj\gcstock\code\C++\Base
	file base:	GCTime
	file ext:	h
	author:		Greg Song
	
	purpose:	
*********************************************************************/

#ifndef _GC_TIME_H_
#define _GC_TIME_H_
#include "GCHeader.h"


namespace gcstock
{
    class GCTimestamp
    {
    public:
        GCTimestamp();
        GCTimestamp(GCINT type, GCINT year, GCINT month, GCINT day,
            GCINT hour, GCINT minute, GCINT second);
        ~GCTimestamp();
        
        GCINT getYear(){return year;}
        GCINT getMon(){return month;}
        GCINT getDay(){return day;}

        GCINT getHour(){return hour;}
        GCINT getMin(){return minute;}
        GCINT getSec(){return second;}

        static GCTimestamp convertToStamp(GCCHAR*, GCCHAR splitChar);
        

        GCTestString toString();
    protected:
        
    private:
        GCINT year;
        GCINT month;
        GCINT day;
        GCINT hour;
        GCINT minute;
        GCINT second;
        
        GCINT type;
    };
}


#endif // _GC_TIME_H_